Function.prototype.myCall = function (ctx) {
  ctx = ctx || window;
  ctx.fn = this; //this是当前调用函数

  let args = Object.prototype.slice.call(arguments, 1);
  let result = ctx.fn(...args);
  delete ctx.fn;
  return result;
};
